import request from '@/utils/request'

const api = '/admin/statistics'

export default {
  getRechargeMonthlyReport (queryParam) {
    return request({
      url: `${api}/rechargeMonthlyReport`,
      method: 'post',
      data: queryParam
    })
  },
  getRechargeQuarterlyReport (queryParam) {
    return request({
      url: `${api}/rechargeQuarterlyReport`,
      method: 'post',
      data: queryParam
    })
  },
  getRechargeAnnualReport () {
    return request({
      url: `${api}/rechargeAnnualReport`,
      method: 'get'
    })
  },
  getConsumeMonthlyReport (queryParam) {
    return request({
      url: `${api}/consumeMonthlyReport`,
      method: 'post',
      data: queryParam
    })
  },
  getConsumeQuarterlyReport (queryParam) {
    return request({
      url: `${api}/consumeQuarterlyReport`,
      method: 'post',
      data: queryParam
    })
  },
  getConsumeAnnualReport () {
    return request({
      url: `${api}/consumeAnnualReport`,
      method: 'get'
    })
  }
}
